package pack0719.com;

import pack0719.com.Fruit;
import pack0719.com.FruitFactory;

//测试工厂模式
public class Test1 {
    public static void main(String[] args) {
//        Fruit f=new Banana();
//        f.showColor();

        Fruit f1= FruitFactory.createFruit(2);
        f1.showColor();
    }
}
